<!--
  Generated template for the SearchPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-toolbar>
    <ion-searchbar (ionInput)="search($event)" placeholder="{{ 'SEARCH_TITLE' | translate }}"></ion-searchbar>
    <ion-buttons end>
      <button ion-button color="light" (click)="dismiss()">
        <span ion-text>{{'BANK_TEXT'| translate}}</span>
      </button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>

<ion-content padding>
  <ion-refresher (ionRefresh)="doRefresh($event)">
    <ion-refresher-content
      pullingIcon="arrow-dropdown"
      pullingText="{{'PULLING_TEXT'| translate}}"
      refreshingSpinner="circles"
      refreshingText="{{'REFRESHING_TEXT' | translate}}">
    </ion-refresher-content>
  </ion-refresher>

  <div style="width: 98%;margin: 0 auto;">
    <ion-grid>
      <ion-row>
        <ion-col col-3 *ngFor="let plan of pages">
          <ion-chip class="chip-color" (click)="openDetail(plan)">
            <ion-label>{{plan.name}}</ion-label>
          </ion-chip>
        </ion-col>
      </ion-row>
    </ion-grid>
  </div>
</ion-content>
